package com.simp.config.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author pan.shun
 * @since 2022/6/8 11:32
 */
@ApiModel
@Data
public class TaskDefinition {
    @ApiModelProperty(value = "CRON 表达式")
    private String cron;

    @ApiModelProperty(value = "任务唯一名称")
    private String name;

    @ApiModelProperty(value = "任务调度类型。1、普通方法；2、JavaBean；3、Groovy脚本；4、Http请求")
    private Integer type;

    @ApiModelProperty(value = "全类名")
    private String className;

    @ApiModelProperty(value = "方法名")
    private String methodName;

    @ApiModelProperty(value = "超链接")
    private String url;

    @ApiModelProperty(value = "Bean组件名称")
    private String beanName;

    @ApiModelProperty(value = "脚本内容")
    private String script;
}
